import characterTools from "shared/component/common/characterTools";
import { SkillServiceImpl } from "shared/modules/act/service/SkillServiceImpl";

export default class SkillServerServiceImpl extends SkillServiceImpl {
    /**
     * 新角色添加
     * @param state 
     */
    addCharacter(character: Ctn.character.HumanModel): void {
        this.addLinearVelocity(character)
    }
    private addLinearVelocity(character: Ctn.character.HumanModel) {

        const skillVelocity = new Instance('LinearVelocity', character.HumanoidRootPart);
        skillVelocity.Name = 'skillVelocity';
        skillVelocity.Enabled = false;
        skillVelocity.Attachment0 = character.HumanoidRootPart.WaitForChild(characterTools.getRootAttName()) as Attachment;
        skillVelocity.RelativeTo = Enum.ActuatorRelativeTo.Attachment0;
    }
    getSkills(characterEntity: Ctn.character.PlayerCharacterEntity): Ctn.skill.SkillConfig[] | undefined {

        return
    }


}